<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>BrasilFA - O seu site de Futebol Americano</title>
    </h:head>
    <h:body> 
        <h:form>
            <h:panelGrid columns="2">
                Nome completo: <p:inputText value="#{cadastroUsuario.usuario.nome}" />
                Data de nascimento: <p:calendar value="#{cadastroUsuario.usuario.dataNascimento}"></p:calendar>
                CPF: <p:inputMask mask="999.999.999-99" value="#{cadastroUsuario.usuario.cpf}"/>
                Usuário: <p:inputText value="#{cadastroUsuario.usuario.usuario}" />
                Senha: <p:password value="#{cadastroUsuario.usuario.senha}" />
                Jogador:  <p:selectBooleanButton value="#{cadastroUsuario.usuario.isJogador}" onLabel="Sim" offLabel="Não" style="width:70px" />
                <h:commandButton action="#{cadastroUsuario.Salvar}" value="Cadastrar" />
            </h:panelGrid>
        </h:form>
        <h:outputLink value="../index.jsf" >Voltar</h:outputLink>
    </h:body>
</html>

